package com.mallcai.bigdata.ladon.service.report.impl.handler.support.rule;

/**
 * @author feixy
 * @version 1.0
 * @date 2019-07-20 19:11
 */
public class StringLessThenOperator extends AbstractStringRuleOperator {

    private static final String[] COMMANDS = new String[]{"la", "less than"};

    @Override
    protected boolean innerTest(String obj1, String obj2) {
        return obj1.compareTo(obj2) < 0;
    }

    @Override
    public String[] getCommands() {
        return COMMANDS;
    }
}
